let img = document.getElementById('img')
let btnS = document.getElementById('btnS')
let i = 0
let timer = setInterval(() => {
    if (i == 3) {
        i = 1
    }
    img.src = `../img/banner(${i}).jpg`
    i++
    // console.log(btnS.children[i].classList.add('active'));
    // console.log(btnS.children[i % 3].setAttribute('class', 'active'));

    // console.log(btnS.children[i % 3].removeAttribute('class', 'active')

}, 1500)


btnS.onclick = function (e) {
    img.src = `../img/banner(${e.target.value}).jpg`
}